﻿@* Ui层项目 - 异常处理路由模块文件 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    Model.Output.FileNameNoExtension = "exception-routing.module";
    Model.Output.Extension = ".ts";
    Model.Output.RelativeRootPath = $"src/{service.GetUiProjectName()}/ClientApp/src/app/routes/exception";
}
import { NgModule } from '@@angular/core';
import { RouterModule, Routes } from '@@angular/router';
import { ExceptionComponent } from './exception.component';
import { ExceptionTriggerComponent } from './trigger.component';

const routes: Routes = [
    { path: '403', component: ExceptionComponent, data: { type: 403 } },
    { path: '404', component: ExceptionComponent, data: { type: 404 } },
    { path: '500', component: ExceptionComponent, data: { type: 500 } },
    { path: 'trigger', component: ExceptionTriggerComponent }
];

@@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class ExceptionRoutingModule {
}
